<template>
  <div class="shop-car-item-list">
    <shop-car-item class="shop-car-item"
                   v-for="(item, index) in goodsList"
                   :key="index"
                   :goods-item="item"></shop-car-item>
  </div>
</template>

<script>
import ShopCarItem from "./ShopCarItem"

export default {
  name: "ShopCarItemList",
  data() {
    return {
      goodsList: this.$store.state.shopCarGoods
    }
  },
  components: {
    ShopCarItem
  }
}
</script>

<style scoped>
  .shop-car-item-list {
    padding: 10px;
  }
</style>